what I did for "only members can visite your site "
apps.inc.php
find
[code]if ($menu_items[$current_menu_path]['type'] == 'private' || $menu_items[$top_menu_path]['type'] == 'private') {
if (!$client['id']) {
redirect('member/login/1');
}
}
[/code]
replace
[code]if ($parr[0] != 'member' && $parr[0] != 'upgrade' && $parr[0] != 'rss' && $parr[0] != 'language' && $parr[0] != 'signup' && get_gvar('private_network') && !$client['id'] && !eregi("google",$_SERVER['HTTP_USER_AGENT']) ) {
if ($parr[0] == 'home') {
}
else {
redirect('member/login/1');
}
}
[/code]
now , go to phpmyadmin, find private network table and change value from 0 to 1. |